package de.mhus.lib.mandala.bind;

import org.codehaus.jackson.JsonNode;

import de.mhus.lib.mandala.Function;

public abstract class SingleDataSourceAction extends Function {

	private SingleDataProvider provider;
	
	protected DataRow getData(JsonNode in) {
		if (provider == null) return null;
		return provider.getData(in);
	}

	public SingleDataProvider getProvider() {
		return provider;
	}

	public void setProvider(SingleDataProvider provider) {
		this.provider = provider;
	}

}
